Complete assessment tasks and fix bugs#233
Open
EthanG45 wants to merge 1 commit intoautomationExamples:mainfrom
Open
Complete assessment tasks and fix bugs#233EthanG45 wants to merge 1 commit intoautomationExamples:mainfrom
EthanG45 wants to merge 1 commit intoautomationExamples:mainfrom
Conversation
- Fix pet schema: name type from integer to string - Extend test_find_by_status_200 with all statuses and assertions - Implement test_get_by_id_404 with parameterized edge cases - Implement test_patch_order_by_id with fixture for test data - Add Order schema and validation - Fix missing f-string in findByStatus error message - Fix PATCH handler to validate status before mutation - Fix mutable default argument in api_helpers - Add uv project setup with pyproject.toml Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nametype corrected from"integer"to"string"inschemas.pytest_pet.pytests: extendedtest_find_by_status_200with all statuses and schema validation, implementedtest_get_by_id_404with parameterized edge casestest_store.pytest: implementedtest_patch_order_by_idwith a@pytest.fixturefor order creation and Order schema validationschemas.py(optional task)findByStatuserror message, PATCH handler setting status before validationapi_helpers.pyuvproject setup withpyproject.tomlanduv.lockBugs Found
schemas.py—nameproperty typed as"integer"instead of"string"app.py:101— error message missingfprefix:'Invalid pet status {status}'app.pyPATCH handler —order['status']was set before validating the status value, allowing invalid statuses to be written before the abortTest Plan
pytest -v)